home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re FW_CODPart WritePartInfo < prev    next >
Encoding:
Internet Message Format  |  1996-07-15  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: FW_CODPart::WritePartInfo
  2. Sent:        7/15/96 2:29 PM
  3. Received:    7/15/96 2:51 PM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >(1) It should clear the storage unit first, or perhaps call
  9. >FW_CPart::ClearPartStorage with that storage unit focused. I use the part
  10. >info to hold data cached for each frame. One time the data got very big
  11. >(about 200K - lots of copies of the same bitmap, I fixed that :-). Then, I
  12. >deleted the objects which were in there, and the storage unit is still that
  13. >large. I've even called ODStorageUnitView::DeleteValue - no luck. The file
  14. >is still huge, and the only way to bring the file size down seems to be to
  15. >remove the storage unit.
  16.  
  17. Have you tried to use FW_CFrame::Internalize/ExternalizeFrame? You should 
  18. not have to use FW_CODPart::WritePartInfo directly.
  19.  
  20. ........................................................................
  21.  Henri Lamiraux                                      lamiraux@apple.com
  22.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  23. ........................................................................
  24.  
  25.  
  26.